package com.cskaoyan._01basic._09operator;
import java.util.Scanner;
/**
 * @author Macro_Ray
 * @since 2024/3/2 14:44
 */
// 键盘录入三位数，反着获取
public class Test1Split {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三位整数：");
        int number = scanner.nextInt();

        System.out.println("个位数字是：" + number % 10);
        System.out.println("十位数字是：" + number / 10 % 10);
        System.out.println("百位数字是：" + number / 100 % 10);
    }
}
